package cn.blossoming.service.dto;

import cn.blossoming.dao.domain.TagEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Tag {
    private Integer id;
    private String name;
    private List<TipsTag> tags;
    private List<VideoTag> videoTags;

    public Tag(TagEntity tag) {
        this.id = tag.getId();
        this.name = tag.getName();
    }

}
